﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Host
{
    public class StatusCode
    {
        public const int Fail = 0;
        public const int Success = 1;
        public const int Warning = 2;
    }

    public class CallBackStatusData
    {
        /// <summary>
        /// 状态编码
        /// </summary>
        public int StatusCode { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
    }

    public class CallBackStatusData<T> : CallBackStatusData
    {
        /// <summary>
        /// 对应的数据
        /// </summary>
        public T Data { get; set; }
    }
}
